package com.lvmama.task.common.vo;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by troy on 2016/7/4.
 * kouhongyu@163.com
 */
public class TaskTick implements Serializable {

    private static final long serialVersionUID = -2015675433464538209L;

    private Long tickId;
    /**
     * 执行器节点，优先级：1.参数传入；2.配置文件；3.机器名；
     */
    private String jobNode;
    /**
     * 环境标识
     */
    private String owner;
    /**
     * 勾点
     */
    private Date tickPoint;
    /**
     * 是否活跃:Y/N
     */
    private AFFIRM active;
    /**
     * 调度器:Y/N
     */
    private AFFIRM leader;
    /**
     * 服务器IP地址
     */
    private String ip;
    /**
     * 其他信息
     */
    private String info;

    public Long getTickId() {
        return tickId;
    }

    public void setTickId(Long tickId) {
        this.tickId = tickId;
    }

    public String getJobNode() {
        return jobNode;
    }

    public void setJobNode(String jobNode) {
        this.jobNode = jobNode;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public Date getTickPoint() {
        return tickPoint;
    }

    public void setTickPoint(Date tickPoint) {
        this.tickPoint = tickPoint;
    }

    public AFFIRM getActive() {
        return active;
    }

    public void setActive(AFFIRM active) {
        this.active = active;
    }

    public AFFIRM getLeader() {
        return leader;
    }

    public void setLeader(AFFIRM leader) {
        this.leader = leader;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "TaskTick{" +
                "tickId=" + tickId +
                ", jobNode='" + jobNode + '\'' +
                ", owner='" + owner + '\'' +
                ", tickPoint=" + tickPoint +
                ", active='" + active + '\'' +
                ", leader='" + leader + '\'' +
                ", ip='" + ip + '\'' +
                ", info='" + info + '\'' +
                '}';
    }

    public enum AFFIRM {
        Y, N
    }
}
